package security;

import java.io.Serializable;

import org.springframework.security.authentication.dao.SaltSource;
import org.springframework.security.core.userdetails.UserDetails;

public class MySalt implements SaltSource, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7132136161637145732L;

	@Override
	public Object getSalt(UserDetails user) {
		return user.getUsername();
	}

}
